package com.hutao.manage.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hutao.manage.datasource.TargetDataSource;
import com.hutao.manage.mapper.UploadScanMapper;
import com.hutao.manage.query.MedBindQuery;
import com.hutao.manage.service.UploadScanService;

@Service
public class UploadScanServiceImpl implements UploadScanService {

	@Autowired
	private UploadScanMapper uploadScanMapper;
	
	@TargetDataSource(name = "ds1")
	@Override
	public List<Map<String, Object>> getUploadScanByMedBindQuery(MedBindQuery params) {
		// TODO Auto-generated method stub
		return uploadScanMapper.getUploadScanByMedBindQuery(params);
	}

	@TargetDataSource(name = "ds1")
	@Override
	public int getUploadScanCountByMedBindQuery(MedBindQuery params) {
		// TODO Auto-generated method stub
		return uploadScanMapper.getUploadScanCountByMedBindQuery(params);
	}

}
